package com.ruoyi.durian.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.durian.domain.LlOrder;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author lenovo
* @description 针对表【ll_order(订单模块-订单表)】的数据库操作Service
* @createDate 2024-07-29 21:04:10
*/
public interface LlOrderService extends IService<LlOrder> {

    /**
     * 乘客取消订单
     *
     * @param orderId  订单id
     * @return
     */
    AjaxResult closeOrder(Integer orderId);

    /**
     * 结算使用优惠券
     * @param orderId
     * @param couponId
     * @return
     */
    AjaxResult useCoupon(Integer orderId, Integer couponId);
}
